﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Text;
using System.IO;
using System.Xml;

using System.Data;
using Gift.WebApp;


public partial class cn_recruitment_recruitment_list : System.Web.UI.Page
{
    // Fields

    protected string order = "createTime";
    protected int ot = 1;
    protected int pageIndex = 1;
    protected int pageSize = 10;
    //protected PageList pl = new PageList();
    //protected PageListManager plm = new PageListManager();
    //protected RecruitmentManager rm = new RecruitmentManager();
    protected int total = 0;

    // Methods
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected StringBuilder RecruitmentBind()
    {
        StringBuilder builder = new StringBuilder();
        try
        {
        //    if (base.Request.QueryString["p"] != null)
        //    {
        //        this.pageIndex = Convert.ToInt32(base.Request.QueryString["p"]);
        //    }
        //    this.pl.TblName = "tb_recruitment";
        //    this.pl.StrGetFields = "id,jobTitle,workAddress,recruitmentCount,convert(nvarchar(10),startDate,121) as startDate,convert(nvarchar(10),endDate,121) as endDate,skill";
        //    this.pl.FldName = this.order;
        //    this.pl.PageSize = this.pageSize;
        //    this.pl.PageIndex = this.pageIndex;
        //    this.pl.DoCount = 1;
        //    this.pl.OrderType = this.ot;
        //    this.pl.StrWhere = "isShow=1 and langughageVersion='zh-CN'";
        //    this.total = Convert.ToInt32(this.plm.GetPageList(this.pl).Rows[0]["Total"]);
        //    this.pl.DoCount = 0;
        //    DataTable pageList = this.plm.GetPageList(this.pl);
        //    builder.AppendLine("<div class=\"help_content\">");
        //    if (pageList.Rows.Count > 0)
        //    {
        //        foreach (DataRow row in pageList.Rows)
        //        {
        //            builder.AppendLine("<h4>职位名称:<strong>" + row["jobTitle"] + "</strong></h4>");
        //            builder.AppendLine("<table>");
        //            builder.AppendLine("<tr>");
        //            builder.AppendLine("<td><strong>职位名称:</strong></td>");
        //            builder.AppendLine("<td>" + row["jobTitle"] + "</td>");
        //            builder.AppendLine("<td><strong>工作地点 :</strong></td>");
        //            builder.AppendLine("<td>" + row["workAddress"] + "</td>");
        //            builder.AppendLine("</tr>");
        //            builder.AppendLine("<tr>");
        //            builder.AppendLine("<td><strong>有效期：</strong></td>");
        //            builder.AppendLine(string.Concat(new object[] { "<td>", row["startDate"], "至", row["endDate"], "</td>" }));
        //            builder.AppendLine("<td><strong>招聘人数：</strong></td>");
        //            builder.AppendLine("<td>" + row["recruitmentCount"] + "</td>");
        //            builder.AppendLine("</tr>");
        //            builder.AppendLine("<tr>");
        //            builder.AppendLine("<td><strong>技能要求：</strong></td>");
        //            builder.AppendLine("<td class=\"textleft\" colspan=\"3\">" + row["skill"] + "</td>");
        //            builder.AppendLine("</tr>");
        //            builder.AppendLine("<tr>");
        //            builder.AppendLine("<td colspan=\"4\"><strong><input type=\"submit\" class=\"submit\" value=\"立即应聘\" onclick=\"location.href='applyingfora_job.html?id=" + row["id"] + "'\" /></strong></td>");
        //            builder.AppendLine("</tr>");
        //            builder.AppendLine("</table>");
        //        }
        //    }
        //    builder.AppendLine("</div>");
        //    builder.AppendLine(new PageListNo().FrontDeskDisplayPage(this.total, this.pageSize, this.pageIndex).ToString());
        }
        catch
        {
        }
        return builder;
    }

}